home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Apr 90 / MacApp.Tech$ 4⁄20⁄90 / 1133-Re how to print w⁄ n-Apr90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  32 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    3277236                         17-April-90        13:27PDT
  4.  
  5. From:   PILLAR.CORP                     Pillar, Chris Ovard,PRT
  6.  
  7. To:     SATORI                          Satori SW, Hugh Rogovy,PRT
  8.  
  9. cc:     MACAPP.TECH$                    MacApp Technical
  10.  
  11. Sub:    RE: how to print w/ normal...
  12.  
  13. If you want to set the minimal margins you need to call InstallMargins with
  14. true for the second parameter.  This then sets fMinimalMargins for you, you
  15. don't change fMinimalMargins directly.  What you will get is an interior equal
  16. to the largest printable area the current printer will support.
  17.  
  18. If you want to set the margins to some other value, say 2 inches, you need
  19. convert your margins into pixels and then call InstallMargins (with the second
  20. parameter false).  My code does this in an override of CalcViewPerPage but you
  21. could do it any number of places.  In order to convert your margin
  22. specifications from inches to pixels you need to multiple the inches by the
  23. values in fMarginRes.  This will get you "true" margins regardless of the value
  24. of the percent reduction/enlargment in the LaserWriter's page setup dialog.  If
  25. you want your margins to vary along with the percent reduction/enlargment then
  26. multiple your inch specifications by fDeviceRes (a field of TPrintHandler).
  27.  
  28. As far as why the MacApp team chose 1 inch for the default margins I would
  29. guess it has something to do with that being a very common choice for margins
  30. (at least in the US).
  31.  
  32.